<?php 
 
class PasswordField extends fpp_tdp_Model{

  function __construct($DataObjects){
    parent::__construct($DataObjects);
    $this->args->blank = TRUE;
  }

  public function __toString(){
    if($this->args->blank = TRUE){
      $value = '';
    }
    return form::password($this->field_name,$value);
  }

}

?>